package controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class HelloAnnotationController {

	@RequestMapping(value="/sayHello2")
	public ModelAndView sayHello(HttpServletRequest request){
		String name=request.getParameter("name");
		return new ModelAndView("hello","message","Hello "+name);
	}
}
